    <head>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.url.js" charset="utf-8"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.validate.min.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.validate.wrapper.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.ui.wxtab.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.ui.wxgrid.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/Calendar/jscal2.js" charset="utf-8"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/Calendar/lang/cn.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.ui.contextMenu.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/jquery.fileupload.js"></script>
        <script type="text/javascript" src="${rc.contextPath}/Scripts/webapp/01_trade/sampleDevAttachedSheet_edit.js"></script>
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/Grid.css" />
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/Forms_Edit.css" />
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/Calendar/jscal2.css" />
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/UI/TabStrip.css" />
        <link type="text/css" rel="stylesheet" href="${rc.contextPath}/Styles/UI/ContextMenu.css" />
        <style>
            .picList {
                margin-top: 5px;
                padding-left: 20px;
            }
            .picList li {
                float: left;
                width: 150px;
                height:120px; line-height:112px;
                margin-left: 12px; margin-top: 5px;
                border: 4px solid #ccc;
                text-align: center;
                cursor: pointer;
            }
            .picList li.active {border-color: red;}
            .picList li img {border: none; vertical-align:middle;}
        </style>
    </head>
    <body>
        <div id="panelTop" style="position:relative; top:0px; height:28px; line-height:28px;">
            <div id="btnPanel" style="position:relative; left:8px; width:auto; top:1px; padding-top:0px;">
                <!--input type="button" name="_ButCheck" value="审核" id="ButCheck" class="actButton" onclick="thisPage.Check();" />
                <input type="button" name="_ButUnCheck" value="反审" id="ButUnCheck" class="actButton" onclick="thisPage.Uncheck();" /-->
                <input type="button" name="_ButClose" value="返回一览画面" id="ButClose" class="actButton" onclick="thisPage.BackToList();" />
            </div>
        </div>
        <input id="HeaderId" type="hidden" value="0" />
        <input id="_typeOfBill" type="hidden" value="<#if _Type?exists>${_Type}</#if>" />
        <!--span id="IsChecked" class="n1" style="position:absolute; top:6px; right:8px; width:auto; padding:3px 8px;">状态：已审核。</span-->
        <div id="SlaveArea" style="position:relative; top:5px;">
            <ul id="tabPanelHeader" class="tabstrip" style="top:0px; width:100%">
                <li id="menu_01" class="tabInactive">
                    <div>
                        <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">开发样品跟单表</abbr></span></span>
                    </div>
                </li>
                <li id="menu_02">
                    <div>
                        <span class="tab_stretch"><span class="tabtext"><abbr class="ls_02">样品图片</abbr></span></span>
                    </div>
                </li>
            </ul>
            <div id="tabPanelContent" class="tab-wrapper" style="top:0px; height:auto;">
                <div id="tabWrapper_01" class="tab-content" style="width:100%;">
                    <div id="btnPanel01" style="position:relative; top:5px; left:0px; width:auto;">
                        <input type="button" name="_ButNew" value="增加" id="ButNew" class="actButton" onclick="thisPage.DoInsert();"/>
                        <input type="button" name="_ButUpdate" value="保存" id="ButUpdate" class="actButton" onclick="thisPage.Save();" />
                    </div>
                    <div id="SlaveDataArea_01" style="margin-top:10px;">
                        <table id="tb-field" class="field" style="position:relative; top:0px; left:0px; text-align:left; width:100%;">
                            <colgroup>
                                <col style="width: 90px;" />
                                <col style="width: 240px;" />
                                <col style="width: 90px;" />
                                <col style="width: 220px;" />
                                <col style="width: 90px;" />
                                <col style="width: 220px;" />
                                <col style="width: 90px;" />
                                <col />
                            </colgroup>
                            <tbody>
                                <tr>
                                    <th>
                                        <label for="NoOfStyle">款号<em>★</em></label>
                                    </th>
                                    <td>
                                        <input type="text" id="NoOfStyle" name="_NoOfStyle" tabindex="1" />
                                    </td>
                                    <th>
                                        <label for="ColourName">颜色</label>
                                    </th>
                                    <td>
                                        <input type="text" id="ColourName" name="_ColourName" tabindex="2" />
                                    </td>
                                    <th>
                                        <label for="Specification"><#if _ShowText?exists>${_ShowText}</#if></label>
                                    </th>
                                    <td colspan="3">
                                        <input type="text" id="Specification" name="_Specification" tabindex="3" style="width:480px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        <label for="Quantity">样品数量<em>★</em></label>
                                    </th>
                                    <td>
                                        <input type="text" id="Quantity" name="_Quantity" tabindex="4" />
                                    </td>
                                    <th>
                                        <label for="ScheduledFinishDate">希望交期<em>★</em></label>
                                    </th>
                                    <td>
                                        <input type="text" id="ScheduledFinishDate" name="_ScheduledFinishDate" tabindex="5" />
                                    </td>
                                    <th>
                                        <label for="DesignerJPName">日本设计者</label>
                                    </th>
                                    <td>
                                        <input type="hidden" id="DesignerJP" name="_DesignerJP" value="0" tabindex="6"/>
                                        <input type="text" id="DesignerJPName" name="_DesignerJPName" tabindex="6" readonly="readonly" />
                                        <span id="ChoiceDesigner" title="选择数据" style="cursor:pointer;" onclick="thisPage.DoChoiceDesigner('jp');"><i class="fa-all fa-question-circle fa-1"></i></span>
                                    </td>
                                    <th>
                                        <label for="DesignerCNName">我方设计者</label>
                                    </th>
                                    <td>
                                        <input type="hidden" id="DesignerCN" name="_DesignerCN" value="0" tabindex="7"/>
                                        <input type="text" id="DesignerCNName" name="_DesignerCNName" tabindex="7" readonly="readonly" />
                                        <span id="ChoiceDesigner" title="选择数据" style="cursor:pointer;" onclick="thisPage.DoChoiceDesigner('cn');"><i class="fa-all fa-question-circle fa-1"></i></span>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        <label for="BuyerName">我方采购</label>
                                    </th>
                                    <td>
                                        <input type="hidden" id="Buyer" name="_Buyer" value="0" tabindex="8"/>
                                        <input type="text" id="BuyerName" name="_BuyerName" tabindex="8" readonly="readonly" />
                                        <span id="ChoiceBuyer" title="选择数据" style="cursor:pointer;" onclick="thisPage.DoChoiceBuyer();"><i class="fa-all fa-question-circle fa-1"></i></span>
                                    </td>
                                    <th>
                                        <label for="ActualFinishingDate">完成日期</label>
                                    </th>
                                    <td>
                                        <input type="text" id="ActualFinishingDate" name="_ActualFinishingDate" tabindex="9" />
                                    </td>
                                    <th>
                                        <label for="SalesRepName">贸易担当</label>
                                    </th>
                                    <td>
                                        <input type="hidden" id="SalesRep" name="_SalesRep" value="0" tabindex="10"/>
                                        <input type="text" id="SalesRepName" name="_SalesRepName" tabindex="10" readonly="readonly" />
                                        <span id="ChoiceSalesRep" title="选择数据" style="cursor:pointer;" onclick="thisPage.DoChoiceSalesRep();"><i class="fa-all fa-question-circle fa-1"></i></span>
                                    </td>
                                    <th>
                                        <label for="IssuedDate">下达指示日期</label>
                                    </th>
                                    <td>
                                        <input type="text" id="IssuedDate" name="_IssuedDate"  tabindex="11" />
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        <label for="UpdatedByName">操作员</label>
                                    </th>
                                    <td>
                                        <input type="text" id="UpdatedByName" name="_UpdatedByName" readonly="readonly" tabindex="11" value="<#if identityUser?exists>${identityUser.getEmployeeName()}</#if>"/>
                                    </td>
                                    <th>
                                        <label for="UpdatedDate">操作日期</label>
                                    </th>
                                    <td>
                                        <input type="text" id="UpdatedDate" name="_UpdatedDate" readonly="readonly" tabindex="12" />
                                    </td>
                                    <th>
                                        <label for="CheckedByName">审核人</label>
                                    </th>
                                    <td>
                                        <input type="hidden" id="CheckedBy" name="_CheckedBy" />
                                        <input type="text" id="CheckedByName" name="_CheckedByName" readonly="readonly" tabindex="13" />
                                    </td>
                                    <th>
                                        <label for="CheckedDate">审核日期</label>
                                    </th>
                                    <td>
                                        <input type="text" id="CheckedDate" name="_CheckedDate" readonly="readonly" tabindex="14" />
                                    </td>
                                </tr>
                                <tr>
                                    <th style="vertical-align:top; padding-top:5px;">
                                        <label for="Description">产品描述 </label>
                                    </th>
                                    <td colspan="7">
                                        <textarea class="area" id="Description" name="_Description" rows="6" tabindex="15" style="width:100%; height:105px; resize:none;"></textarea>
                                    </td>
                                </tr>
                            </tbody>
                        </table>                  
                    </div>
                </div>
                <!-- 图片-->
                <div id="tabWrapper_02" class="tab-content" style="width:100%;">
                    <div id="btnPanel02" style="position:relative; top:5px; left:0px; width:auto;">
                        <input type="button" name="_ButDelPicture" value="删除图片" id="ButDelPicture" class="actButton" onclick="thisPage.DeletePicture();" />
                        <input type="button" name="_ButViewPicture" value="查看原图" id="ButViewPicture" class="actButton" onclick="thisPage.ViewPicture();" />
                    </div>
                    <table id="picEditArea" class="field" style="position:relative; top:8px; left:0px; text-align:left; width:100%;">
                        <colgroup>
                            <col style="width: 90px;" />
                            <col />
                        </colgroup>
                        <tbody>
                            <tr>
                                <th style="vertical-align:top; padding-top:7px;">
                                    <label for="hzUploadFile">样品图片</label>
                                </th>
                                <td>
                                    <input id="t_hzUploadFile" type="hidden" value="sample_dev" />
                                    <input id="d_hzUploadFile" type="hidden" value="" />
                                    <input id="b_hzUploadFile" type="hidden" value="" />
                                    <input id="download_hzUploadFile" type="hidden" value="" />
                                    <span class="btn_addPic">
                                        <span><em></em>添加文件</span>
                                        <input type="file" id="hzUploadFile" name="_hzUploadFile" class="file" title="支持图片、文本等格式，文件小于5M"
                                               tabindex="19"
                                               onchange="onFileInputChange('hzUploadFile');" />
                                    </span>
                                    <span id="filename_hzUploadFile"></span>
                                    <button type="button" id="upload_hzUploadFile" class="actButton" disabled="disabled" onclick="thisPage.DoFileUpload();">添加图片</button>
                                    <img id="loading_hzUploadFile" alt="loading" src="${rc.contextPath}/Images/Icons/loading.gif" style="display:none; vertical-align:middle;" />
                                    <span id="error_hzUploadFile" style="display:none; background-color:Yellow; cursor:pointer; padding:2px;"></span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <ul id="pictureList" class="picList">
                        <li><img src="" alt="样品图片" style="max-width:150px; max-height:120px;" /></li>
                    </ul>
                </div>
            </div>
        </div>
    </body>